package com.rongke.model;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.rongke.utils.DateJsonDeserializer;
import com.rongke.utils.DateJsonSerializer;
import org.springframework.format.annotation.DateTimeFormat;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;

/**
 * @BankcardInfo
 * @用户认证(bankcard_info)
 * @version : Ver 1.0
 */
@TableName("bankcard_info")
public class BankcardInfo implements Serializable {
	@TableField(exist = false)
	private static final long serialVersionUID = 1L;

	/**
	 * @备注:
	 * @字段:id BIGINT(19)
	 */
	@TableId(type = IdType.AUTO)
	private Long id;

	private String hyAuthCode;

	public String getHyAuthCode() {
		return hyAuthCode;
	}

	public void setHyAuthCode(String hyAuthCode) {
		this.hyAuthCode = hyAuthCode;
	}

	/**

	 * @备注:
	 * @字段:user_id BIGINT(19)
	 */
	private Long userId;

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	/**
	 * @备注:卡片类型 0-借记卡 1-贷记卡

	 * @字段:type INT
	 */
	private Integer type;
	@Override
	public String toString() {
		return "BankcardInfo{" +
				"id=" + id +
				", userId=" + userId +
				", realName='" + realName + '\'' +
				", idCard='" + idCard + '\'' +
				", bankNum='" + bankNum + '\'' +
				", bankName='" + bankName + '\'' +
				", status=" + status +
				", gmtDatetime=" + gmtDatetime +
				", uptDatetime=" + uptDatetime +
				'}';
	}

	/**
	 * @备注:姓名
	 * @字段:real_name VARCHAR(128)
	 */
	private String realName;


	/**
	 * @备注:身份证号
	 * @字段:id_card VARCHAR(128)
	 */
	private String idCard;


	/**
	 * @备注:银行卡号
	 * @字段:bank_num VARCHAR(128)
	 */
	private String bankNum;


	/**
	 * @备注:银行名称
	 * @字段:bank_name VARCHAR(128)
	 */
	private String bankName;


	/**
	 * @备注:银行卡状态1可用2不可用
	 * @字段:status INT(10)
	 */
	private Integer status;


	/**
	 * @备注:
	 * @字段:gmt_datetime DATETIME(19)
	 */
	@JsonSerialize(using=DateJsonSerializer.class)
	@JsonDeserialize(using=DateJsonDeserializer.class)
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss" )
	private java.util.Date gmtDatetime = new java.util.Date();


	/**
	 * @备注:
	 * @字段:upt_datetime DATETIME(19)
	 */
	@JsonSerialize(using=DateJsonSerializer.class)
	@JsonDeserialize(using=DateJsonDeserializer.class)
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss" )
	private java.util.Date uptDatetime = new java.util.Date();


	public BankcardInfo(){
	}

	public BankcardInfo(
		Long id
	){
		this.id = id;
	}



	public void setId(Long id) {
		this.id = id;
	}

	public Long getId() {
		return this.id;
	}


	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public Long getUserId() {
		return this.userId;
	}


	public void setRealName(String realName) {
		this.realName = realName;
	}

	public String getRealName() {
		return this.realName;
	}


	public void setIdCard(String idCard) {
		this.idCard = idCard;
	}

	public String getIdCard() {
		return this.idCard;
	}


	public void setBankNum(String bankNum) {
		this.bankNum = bankNum;
	}

	public String getBankNum() {
		return this.bankNum;
	}


	public void setBankName(String bankName) {
		this.bankName = bankName;
	}

	public String getBankName() {
		return this.bankName;
	}


	public void setStatus(Integer status) {
		this.status = status;
	}

	public Integer getStatus() {
		return this.status;
	}


	public void setGmtDatetime(java.util.Date gmtDatetime) {
		this.gmtDatetime = gmtDatetime;
	}

	public java.util.Date getGmtDatetime() {
		return this.gmtDatetime;
	}


	public void setUptDatetime(java.util.Date uptDatetime) {
		this.uptDatetime = uptDatetime;
	}

	public java.util.Date getUptDatetime() {
		return this.uptDatetime;
	}
}
